home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Drag / c / SetHandler < prev   
Text File  |  1994-04-01  |  1KB  |  35 lines

  1. /*
  2.     ####             #    #     # #
  3.     #   #            #    #       #          The FreeWare C library for 
  4.     #   #  ##   ###  #  # #     # ###             RISC OS machines
  5.     #   # #  # #     # #  #     # #  #   ___________________________________
  6.     #   # ####  ###  ##   #     # #  #                                      
  7.     #   # #        # # #  #     # #  #    Please refer to the accompanying
  8.     ####   ### ####  #  # ##### # ###    documentation for conditions of use
  9.     ________________________________________________________________________
  10.  
  11.     File:    Drag.SetHandler.c
  12.     Author:  Copyright © 1994 Jason Williams
  13.     Version: 1.00 (06 Feb 1994)
  14.     Purpose: Vastly simplify processing of drags-
  15.              attach handlers to process drag updates and drag completion
  16.  
  17.              NOTE that this system relies on a pair of handlers (for NULL
  18.              and Drag-Finished events) to operate. (See Drag.h)
  19. */
  20.  
  21. #include "DeskLib:Drag.h"
  22.  
  23. drag_handler drag_currentupdate    = NULL;
  24. drag_handler drag_currentcomplete  = NULL;
  25. void         *drag_currentuserdata = NULL;
  26.  
  27.  
  28. extern void Drag_SetHandlers(drag_handler uproc, drag_handler cproc,
  29.                              void *userdata)
  30. {
  31.   drag_currentupdate   = uproc;
  32.   drag_currentcomplete = cproc;
  33.   drag_currentuserdata = userdata;
  34. }
  35.